package com.atguigu.demo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * @ClassName DemoData
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/6/21
 * @Version 1.0
 */
@Data
public class DemoData {
    //设置每列的表头名称,读取时要指定index,第一列索引是0
    @ExcelProperty(value = "编号",index = 0)
    private Integer no;
    @ExcelProperty(value = "姓名",index = 1)
    private String name;
}
